package com.yesep.learn.design.creational.factory;

import com.yesep.learn.design.common.pojo.*;

public class DogFactory implements IAnimalFactoryMethod<Dog> {
    @Override
    public Dog createAnimal(String name) {
        return new Dog(name);
    }
}
